package com.gaoyi.websocket.common;

import lombok.Data;

@Data
public class ResultUrl {

    private String url;
    private String data[];
    private int errno;
    private int code;

    public static ResultUrl OK(String url, String data[], int errno, int code){
        ResultUrl resultUrl = new ResultUrl();
        resultUrl.setUrl(url);
        resultUrl.setData(data);
        resultUrl.setErrno(errno);
        resultUrl.setCode(code);
        return resultUrl;
    }

}
